package runthrad.callbacklist;

/**
 * @author lianmingzhang
 * @create 2017-09-21 下午10:06
 */
public class Master {
    public static void main(String[] args) {
        String name = "src/file/file.txt";
        Callback slave1 = new Slave1();
        Callback slave2 = new Slave2();
        CallbackDigest callbackDigest = new CallbackDigest(name);
        callbackDigest.registCall(slave1);
        callbackDigest.registCall(slave2);
        Thread t = new Thread(callbackDigest);
        t.start();
    }
}
